{extend name="app/admin/view/base.html"/}
{block name="resources"}
<style type="text/css">
    .layui-input-block input,
    .layui-input-block input,
    .layui-input-block textarea {outline: none;border: none;}
    .ns-form-row{margin-top: 0;}
    .ns-store-company{margin-top: 10px;}
</style>
{/block}
{block name="main"}
<div class="layui-form">
    <div class="layui-card ns-card-common ns-card-brief">
        <div class="layui-card-header">
            <span class="ns-card-title">酒店基本信息</span>
        </div>
        <div class="layui-card-body">
            <div class="layui-form-item">
                <label class="layui-form-label">酒店名称：</label>
                <div class="layui-input-block">
                    <input disabled name="hotel_name" type="text" value="{$apply_detail.hotel_name}" class="layui-input ns-len-mid">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">酒店地址：</label>
                <div class="layui-input-block">
                    <p class="ns-input-text">{$apply_detail.full_address}{$apply_detail.address}</p>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">营业时间：</label>
                <div class="layui-input-block">
                    <p class="ns-input-text">{$apply_detail.start_time_show}-{$apply_detail.end_time_show}</p>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">联系人：</label>
                <div class="layui-input-block">
                    <p class="ns-input-text">{$apply_detail.name}</p>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">联系电话：</label>
                <div class="layui-input-block">
                    <p class="ns-input-text">{$apply_detail.telphone}</p>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label img-upload-lable">列表图：</label>
                <div class="layui-input-block img-upload">
                    <div class="upload-img-block icon">
                        <div class="upload-img-box" id="avatar">
                            <img layer-src src="{:img($apply_detail.hotel_img)}" alt="">
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label img-upload-lable">详情图：</label>
                <div class="layui-input-block img-upload">
                    <div class="upload-img-block icon" style="border: 0px;">
                        <div class="upload-img-box" id="banner">
                            {foreach $apply_detail.images as $k => $v}
                            <img layer-src src="{:img($v)}" alt="" style="position: relative;">
                            {/foreach}
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>

    <div class="layui-card ns-card-common ns-card-brief">
        <div class="layui-card-header">
            <span class="ns-card-title">认证类型</span>
        </div>
        <div class="layui-card-body">
            <div class="layui-form-item">
                <label class="layui-form-label">认证类型：</label>
                <div class="layui-input-block ns-len-mid">
                    {if condition="$apply_detail.hotel_type == 1"}
                    <input disabled type="text" name="cert_type" value="个人店铺" autocomplete="off" class="layui-input ns-len-small">
                    {/if}
                    {if condition="$apply_detail.hotel_type == 2"}
                    <input disabled type="text" name="cert_type" value="企业店铺" autocomplete="off" class="layui-input ns-len-small">
                    {/if}
                </div>
            </div>
        </div>
    </div>

    <!-- 联系人手机号身份证 -->
    <div class="layui-card ns-card-common ns-card-brief">
        <div class="layui-card-header">
            <span class="ns-card-title">联系人信息</span>
        </div>
        <div class="layui-card-body">
            <div class="layui-form-item">
                <label class="layui-form-label img-upload-lable ns-company-pic-front">申请人身份证正面：</label>
                <div class="layui-input-block img-upload">
                    <div class="upload-img-block icon">
                        <div class="upload-img-box" id="idCardPicFront">
                            <img layer-src src="{:img($apply_detail.front_pic_id_card)}" alt="">
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label img-upload-lable ns-company-pic-back">申请人身份证反面：</label>
                <div class="layui-input-block img-upload">
                    <div class="upload-img-block icon">
                        <div class="upload-img-box" id="idCardPicBack">
                            <img layer-src src="{:img($apply_detail.reverse_pic_id_card)}" alt="">
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label ns-company-name">证件姓名：</label>
                <div class="layui-input-block">
                    <input disabled name="id_card_name" type="text" value="{$apply_detail.id_card_name}" class="layui-input ns-len-mid">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label ns-company-phone">证件号码：</label>
                <div class="layui-input-block">
                    <input disabled name="id_card_number" type="text" value="{$apply_detail.id_card_number}" class="layui-input ns-len-mid">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label ns-company-ident">证件类型：</label>
                <div class="layui-input-block">
                    <input disabled name="id_card_type" type="text" value="{$apply_detail.id_card_type}" class="layui-input ns-len-mid">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">证件有效期：</label>
                <div class="layui-input-block">
                    <p class="ns-input-text">{$apply_detail.id_card_start_time}-{$apply_detail.id_card_end_time}</p>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-card ns-card-common ns-card-brief">
        <div class="layui-card-header">
            <span class="ns-card-title">开户行信息</span>
        </div>
        <div class="layui-card-body">
            <div class="layui-form-item">
                <label class="layui-form-label">开户人：</label>
                <div class="layui-input-block">
                    <p class="ns-input-text">{$apply_detail.account_holder}</p>
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">开户行：</label>
                <div class="layui-input-block">
                    <p class="ns-input-text">{$apply_detail.bank_name}</p>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">银行卡号：</label>
                <div class="layui-input-block">
                    <p class="ns-input-text">{$apply_detail.bank_number}</p>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">银行卡类型：</label>
                <div class="layui-input-block">
                    <p class="ns-input-text">
<!--                        1对公,2对私,3对私非法人-->
                        {if $apply_detail.bank_type==1}
                        对公
                        {/if}
                        {if $apply_detail.bank_type==2}
                        对私
                        {/if}
                        {if $apply_detail.bank_type==3}
                        对私非法人
                        {/if}
                    </p>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label img-upload-lable ns-company-pic-back">银行卡图片：</label>
                <div class="layui-input-block img-upload">
                    <div class="upload-img-block icon">
                        <div class="upload-img-box" id="settlement_bank_img">
                            <img layer-src src="{:img($apply_detail.bank_img)}" alt="">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 企业店铺独有 -->
    {if condition="$apply_detail.hotel_type == 2"}
    <div class="ns-store-company">

        <!-- 营业执照 税务 -->
        <div class="layui-card ns-card-common ns-card-brief">
            <div class="layui-card-header">
                <span class="ns-card-title">企业资质</span>
            </div>
            <div class="layui-card-body">
                <div class="layui-form-item">
                    <label class="layui-form-label">统一社会信用码：</label>
                    <div class="layui-input-block">
                        <input disabled name="business_license_number" type="text" value="{$apply_detail.business_license_number}" class="layui-input ns-len-mid">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label img-upload-lable">营业执照图片：</label>
                    <div class="layui-input-block img-upload">
                        <div class="upload-img-block icon">
                            <div class="upload-img-box" id="license">
                                <img layer-src src="{:img($apply_detail.business_license)}" alt="">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">有效期类型：</label>
                    <div class="layui-input-block ns-len-mid">
                        <p name="license_time_type" class="ns-input-text" disabled>{$apply_detail.business_license_type==1?'长期有效':'有期限'}</p>
                    </div>
                </div>
                {if $apply_detail.business_license_type==1}
                <div class="layui-form-item">
                    <label class="layui-form-label">有效期：</label>
                    <div class="layui-input-block">
                        <p class="ns-input-text">{$apply_detail.business_license_start_time}-{$apply_detail.business_license_end_time}</p>
                    </div>
                </div>
                {/if}
            </div>
        </div>
        {/if}




    </div>
    {/block}
    {block name="script"}
    <script>
        layui.use(['form'], function() {
            var form = layui.form;


        });




    </script>
    {/block}